//
//  FirstViewController.m
//  9-27
//
//  Created by liuchengming on 16/9/27.
//  Copyright © 2016年 liuchengming. All rights reserved.
//

#import "FirstViewController.h"
#import "LeftchatCell.h"


@interface FirstViewController ()

@end

@implementation FirstViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view, typically from a nib.
    self.tableView.rowHeight = UITableViewAutomaticDimension;
    self.tableView.estimatedRowHeight = 44;
    
}

- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section

{
    return 10 ;
}

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
        LeftchatCell * cell = [tableView dequeueReusableCellWithIdentifier:@"123456Cell" forIndexPath:indexPath];
        cell.bubble.image = [cell.bubble.image resizableImageWithCapInsets:UIEdgeInsetsMake(30, 30, 15, 30) ];
        cell.label.text = @"123132145hsgjdsiugsbgiudsgiudbicbcvufdgd iug ovtnutsetncmegrotvnrtu,sdmhoi6465";
        
    
    return cell;

}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
